package com.hopedove.workshop.ui.shiftchange

import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.hopedove.base.BaseActivity
import com.hopedove.workshop.R
import com.hopedove.workshop.databinding.WorkshopShiftChangeHomeActivityBinding
import com.hopedove.workshop.viewmodel.shiftchange.ShiftChangeHomeViewModel
import org.koin.androidx.viewmodel.ext.android.viewModel

// 交班记录主页
class ShiftChangeHomeActivity : BaseActivity() {

    lateinit var binding: WorkshopShiftChangeHomeActivityBinding
    private val viewModel: ShiftChangeHomeViewModel by viewModel()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this, R.layout.workshop_shift_change_home_activity)
        binding.lifecycleOwner = this
        binding.vm = viewModel
        observeNavigation(viewModel.navigation)
    }

}